package com.ruoyi.system.controller;


import com.ruoyi.system.service.DataSourceService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.*;



@CrossOrigin
@RestController
@RequestMapping("/database")
public class DatabaseController {

    @Autowired
    private RedisTemplate<String,String> redisTemplate;

    @Autowired
    private DataSourceService dataSourceService;

    /**
     * 查询商品信息 ：与店铺关联列表
     */
    @GetMapping("/subTable")
    public void addDataSource(@RequestParam String merchantId,@RequestParam String storeId) {

        dataSourceService.subTable( merchantId,  storeId);
    }

}
